<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021/7/26
  Time: 16:18
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
        <title>Show</title>
</head>
<body>
    <%
        request.setCharacterEncoding("utf-8");
        String name = request.getParameter("uname");
        int age = Integer.parseInt(request.getParameter("uage"));
        String pwd = request.getParameter("upwd");
        String[] hobbies = request.getParameterValues("uhobbies");
    %>
    注册成功，信息如下：<br/>
        姓名：<%=name %><br/>
        年龄：<%=age %><br/>
        密码：<%=pwd %><br/>
        爱好：<br/>
        <%
            if(hobbies != null){
                for(String s:hobbies)
                    out.print(s + "&nbsp;");
            }
        %>
</body>
</html>
